package DataClass;

import java.sql.Time;
import java.sql.Timestamp;

/**
 * DROP SEQUENCE IF EXISTS info_id_seq CASCADE;
 * DROP TABLE IF EXISTS Login_And_Exit CASCADE;
 * CREATE SEQUENCE info_id_seq;
 * CREATE TABLE Login_And_Exit (
 *      RP_Name VARCHAR(32),
 *     RU_id CHAR(10),
 *     Info_id INT PRIMARY KEY DEFAULT nextval('info_id_seq'),
 *     Info_Type CHAR(2),
 *     Info_InTime TIMESTAMP,
 *     Info_OutTime TIMESTAMP,
 *     RU_Teacher VARCHAR(9),
 *     RU_AnoTeacher VARCHAR(9)
 * );
 * @since 2024-06-03
 * @author yooo_fan
 */
public class LoginAndExit {
    private String RPName;

    private String RUid;

    private Integer InfoId;

    private String InfoType;

    private Timestamp InfoInTime;

    private Timestamp InfoOutTime;

    private String RUTeacher;

    private String RUAnoTeacher;

    public LoginAndExit(String RPName,String ruId, Integer infoId, String infoType, Timestamp infoInTime, Timestamp infoOutTime, String ruTeacher, String ruAnoTeacher) {
        this.RPName = RPName;
        this.RUid = ruId;
        this.InfoId = infoId;
        this.InfoType = infoType;
        this.InfoInTime = infoInTime;
        this.InfoOutTime = infoOutTime;
        this.RUTeacher = ruTeacher;
        this.RUAnoTeacher = ruAnoTeacher;
    }

    public LoginAndExit(){

    }

    // getters ans setters

    public String getRPName() {
        return RPName;
    }
    public void setRPName(String RPName) {
        this.RPName = RPName;
    }
    public void setRUid(String RUid) {
        this.RUid = RUid;
    }

    public void setInfoId(Integer InfoId) {
        this.InfoId = InfoId;
    }

    public void setInfoType(String InfoType) {
        this.InfoType = InfoType;
    }

    public void setInfoInTime(Timestamp InfoInTime) {
        this.InfoInTime = InfoInTime;
    }

    public void setInfoOutTime(Timestamp InfoOutTime) {
        this.InfoOutTime = InfoOutTime;
    }

    public void setRUTeacher(String RUTeacher) {
        this.RUTeacher = RUTeacher;
    }

    public void setRUAnoTeacher(String RUAnoTeacher) {
        this.RUAnoTeacher = RUAnoTeacher;
    }

    public String getRUid() {
        return RUid;
    }

    public Integer getInfoId() {
        return InfoId;
    }

    public String getInfoType() {
        return InfoType;
    }

    public Timestamp getInfoInTime() {
        return InfoInTime;
    }

    public Timestamp getInfoOutTime() {
        return InfoOutTime;
    }

    public String getRUTeacher() {
        return RUTeacher;
    }

    public String getRUAnoTeacher() {
        return RUAnoTeacher;
    }
}